package com.chuangjiangx.member.stored.web.response;

import com.chuangjiangx.member.coupon.web.response.MbrHasCouponResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author cj-ch
 * @date 2018/7/17 下午9:07
 */
@Data
@ApiModel
public class PayMbrInfoResponse {
    /**
     * 是否是会员
     */
    @ApiModelProperty(value = "是否是会员",required = true,dataType = "Boolean",example = "true")
    private boolean isMember = false;
    @ApiModelProperty(value = "是否登录",required = true,dataType = "Boolean",example = "true")
    private boolean isLogin = false;

    /**
     * isMember为true时有值
     * 会员ID
     */
    @ApiModelProperty(value = "会员ID,isMember为true时有值",dataType = "Long",example = "25")
    private Long memberId;
    /**
     * isMember为true时有值
     * 会员积分
     */
    @ApiModelProperty(value = "会员积分,isMember为true时有值",dataType = "Long",example = "10600")
    private Long availableScore;
    /**
     * isMember为true时有值
     * 会员储值余额
     */
    @ApiModelProperty(value = "会员储值余额,isMember为true时有值",dataType = "BigDecimal",example = "1005.55")
    private BigDecimal availableBalance;

    /**
     * isMember为true时有值
     * 会员领取的卡券列表
     */
    @ApiModelProperty(value = "会员领取的卡券列表,isMember为true时有值")
    List<MbrHasCouponResponse> mbrHasCouponList;

    @ApiModelProperty(value = "服务器当前时间",required = true)
    private Date currentTime = new Date();
}
